from django.urls import re_path, path, include
from rest_framework import routers
from . import views, grade

router = routers.DefaultRouter()
router.register(r"bplace", views.AllinpayPlaceListSetViewSet, basename="00场所创建")
router.register(r"battrs", views.AllinpayPlaceInfoSetViewSet, basename="01场所信息")
router.register(r"bstatus", views.AllinpayPlaceStatusSetViewSet, basename="02场所状态")
router.register(r"bfee", views.AllinpayPlaceFeeSetViewSet, basename="03场所手续费")
# router.register(r"bsuper", views.AllinpayPlaceAuthSetViewSet, basename="04场所管理员")
router.register(r"barCode", views.AllinpayPlaceRangeViewSet, basename="05场所编码转换")

router.register(r"bmyterm", views.AllinpayTermListSetViewSet, basename="11经营名目")
router.register(r"bmybank", views.AllinpayBankListSetViewSet, basename="12收款账户")
router.register(r"bTermBank", views.AllinpayTermBankViewSet, basename="13名目绑定账户")

# router.register(r"allterm", views.AllinpayPlaceAllTermSetViewSet, basename="13营收特征码")
# router.register(r"bmyplace", views.AllinpayUserplaceListSetViewSet, basename="13场所员工")
# router.register(r"bmyperms", views.PlaceUserPermsSetViewSet, basename="14员工角色权限")
# router.register(r"bmyusers", views.PlaceMyUserListViewSet, basename="15员工列表")

router.register(r"clizhu", views.PlaceLizhuInterfaceSetViewSet, basename="21酒店接口")
router.register(r"cpospal", views.PlacePospalInterfaceSetViewSet, basename="22商超接口")

router.register(r"alerttoken", views.PlaceAlertTokenSetViewSet, basename="25语音Token")

router.register(r"register", views.AllinpayBoxRegisterSetViewSet, basename="30盒子注册")
router.register(r"login", views.AllinpayBoxLoginSetViewSet, basename="31盒子登录")

router.register(r"corp", views.AllinpayPlacecorpListSetViewSet, basename="40连锁公司")
router.register(r"myrole", views.AllinpayPlaceroleListSetViewSet, basename="41场所角色")
router.register(r"mystaff", views.AllinpayPlacestaffListSetViewSet, basename="42场所员工")
router.register(r"myviews", views.AllinpayPlaceviewsListSetViewSet, basename="43场所视图")
router.register(
    r"yunviews", views.AllinpayAuthviewsListYunSetViewSet, basename="44云端视图列表"
)

router.register(r"staffrole", views.AllinpayPlacestaffRoleSetViewSet, basename="45员工角色")
router.register(
    r"roleperms", views.AllinpayPlacerolePermSetViewSet, basename="46角色场所权限"
)
router.register(
    r"rolepermsYun", views.AllinpayPlacerolePermYunSetViewSet, basename="47角色云端权限"
)

router.register(
    r"staffextd", views.AllinpayPlacestaffExtendSetViewSet, basename="48场所员工扩展信息"
)
router.register(
    r"staffpost", views.AllinpayPlaceStaffPostSetViewSet, basename="49场所员工在岗列表"
)

router.register(r"PlaceGrade", grade.AllinpayPlaceGradeSetViewSet, basename="50场所班次列表")
router.register(
    r"PlaceGradeList", grade.AllinpayPlaceGradeListSetViewSet, basename="51场所排班表"
)
router.register(
    r"AggreGradeList", grade.AllinpayAggregationGradeListViewSet, basename="512聚合场所排班表"
)
router.register(
    r"PlaceRawardConf", views.AllinpayPlaceinterConfViewSet, basename="52场所积分兑换配置"
)
router.register(
    r"PlaceRawardList", views.AllinpayRawardListSetViewSet, basename="53场所奖励分值"
)
router.register(
    r"PlaceCamera", views.AllinpayPlacecameraListSetViewSet, basename="54场所监控列表"
)

router.register(
    r"WorkItemModel", views.AllinpayPlaceWorkitemViewSet, basename="56场所工作项模板列表"
)
router.register(
    r"WorkItemList", views.AllinpayPlaceWorkitemListViewSet, basename="57场所工作项事务列表"
)
router.register(
    r"WorkItemType", views.AllinpayWorkitenTypesViewSet, basename="58工作项类型列表"
)

router.register(
    r"doFromModel",
    views.AllinpayPlaceWorkitemFromModelsViewSet,
    basename="59工作项从模板创建事务",
)


# router.register(
#     r"doFromList", views.AllinpayPlaceWorkitemToModelsViewSet, basename="59工作项从事务创建模板"
# )


router.register(
    r"WorkItemSubmit", views.AllinpayPlaceworkitemSubmitViewSet, basename="60工作项事务提交"
)
router.register(
    r"WorkItemCheck", views.AllinpayPlaceworkitemCheckViewSet, basename="61工作项事务点检"
)
router.register(r"timeoutList", views.AllinpayPlacedeatListViewSet, basename="65门店有效期")
router.register(r"timeoutReqsn", views.AllinpayPlacedeatLogsViewSet, basename="66门店续期单")


# router.register(r"test", views.TestViewSet, basename="99测试接口")
urlpatterns = [
    path("", include(router.urls)),
]
